package com.ruoyi.user.model;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author: houyong
 * @date: 2025年11月14日 11:00
 */
@Schema(name = "ShortMessageParams", description = "短信验证码参数")
public class ShortMessageParams {
    @Schema(description = "验证码Token 图片验证码接口返回的uuid")
    public String captchaToken;
    @Schema(description = "验证码 验证码的结果")
    public String captcha;
    @Schema(description = "接收人。发送手机短信则为手机号码；发送邮件短信则为邮箱地址")
    @NotBlank
    public String receiver;
    @Schema(description = "用途。0:测试,1:注册,2:登录,3:双因子登录,4:找回密码,5:修改手机号码,6:修改邮箱地址")
    @Min(0)
    @Max(6)
    public short usage;
    @Schema(description = "语言。zh:中文,ar:阿拉伯语,en:英语,fr:法语,es:西班牙语,id:印尼语")
    public String language;

    public String getCaptchaToken() {
        return captchaToken;
    }

    public void setCaptchaToken(String captchaToken) {
        this.captchaToken = captchaToken;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public short getUsage() {
        return usage;
    }

    public void setUsage(short usage) {
        this.usage = usage;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }
}
